package com.whl.common.exception;

public class BusinessException extends RuntimeException {

	private static final long serialVersionUID = -8014001549642815373L;
	private Integer code;
	private String message;

	public BusinessException() {
	}

	public BusinessException(final Throwable cause) {
		super(cause);
	}
	
	public BusinessException(final String message) {
		super(message);
		this.message = message;
	}

	public BusinessException(final Integer code, final String message) {
		super(message);
		this.code = code;
		this.message = message;
	}

	public BusinessException(final String message,final Throwable cause) {
		super(message,cause);
		this.message = message;
	}
	
	public BusinessException(final Integer code, final String message, final Throwable cause) {
		super(message, cause);
		this.code = code;
		this.message = message;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
